package com.it.service.impl;

import com.it.mapper.SysMenuMapper;
import com.it.service.SysMenuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: CaoYouGen
 * @DateTime: 2023/11/09/12:22
 * @注释: TODO
 **/

@Service
@Slf4j
public class SysMenuServiceImpl implements SysMenuService {

    @Resource
    private SysMenuMapper sysMenuMapper;

    @Override
    public List<String> queryPermissionsByUserId(Integer userId) {
        return sysMenuMapper.queryPermissionsByUserId(userId);
    }
}
